package com.cloudservice.ccs.mapper;


import com.cloudservice.ccs.entity.WorkLog;
import com.cloudservice.ccs.entity.WorkOrder;
import com.cloudservice.ccs.model.WorkOrderConnectQuery;
import com.cloudservice.ccs.model.WorkOrderWithCustomerName;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface WorkOrderMapper {
	int save(WorkOrder workOrder);

	int update(Integer id, WorkOrder workOrder);

	int partialUpdate(Integer id, Map<String, Object> fields);

	int delete(Integer id);

	WorkOrder getOne(Integer id);

	List<WorkOrderConnectQuery> getAll();

	List<WorkOrderConnectQuery> getWithConditions( Map<String, Object> conditions);

    WorkOrderConnectQuery queryCustomer(Integer id);

    List<WorkOrderWithCustomerName> queryByCustomerId(Integer customerId);
}
